﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Other.aspx.cs" Inherits="Other_Other" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div>
        <asp:LinkButton ID="linkAsset" runat="server" Font-Size="Small">Assets</asp:LinkButton>
        &nbsp;
        <asp:Label ID="Label7" runat="server" Text=" > " Font-Size="Small"></asp:Label>
        &nbsp;
        <asp:LinkButton ID="LinkButton6" runat="server" Text="Other()"
            Font-Size="Small"></asp:LinkButton>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" Runat="Server">

    <asp:Button ID="Button2" runat="server" Text="Do Maintenance"  class="google-button-blue"
        style="width:150px; margin-top:2%; margin-right:5%; height:30px; float:right" />

    <div style="background-color:White; padding:2.5%">
        <asp:Label ID="lbAssetHeading" runat="server" Text="Other Asset" Font-Bold="True" 
            Font-Size="X-Large"></asp:Label>
            <br /><br />

    <asp:Table ID="Table1" runat="server">
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="lbAssetID" runat="server" Text="Asset ID: "></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="txtAssetID" runat="server"></asp:TextBox>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="lbAssetName" runat="server" Text="Asset Name: "></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="txtAssetName" runat="server"></asp:TextBox>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="lbType" runat="server" Text="Type: "></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="txtType" runat="server"></asp:TextBox>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="lbBrandName" runat="server" Text="Brand Name: "></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="txtBrandNamel" runat="server"></asp:TextBox>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="lbDescription" runat="server" Text="Description: "></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="txtDescription" runat="server"></asp:TextBox>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="lbSerial" runat="server" Text="Serial: "></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="txtSerial" runat="server"></asp:TextBox>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="lbLocation" runat="server" Text="Location: "></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="txtLocation" runat="server"></asp:TextBox>
                
                <asp:DropDownList ID="ddlLocation" runat="server" 
                    DataSourceID="AccessDataSource1" DataTextField="Room_Name" 
                    DataValueField="Room_Name" Visible="False">
                </asp:DropDownList>

                <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
                    DataFile="~/App_Data/Database.accdb"
                    SelectCommand="SELECT DISTINCT [Room_Name] FROM [Classroom]">
                </asp:AccessDataSource>

            </asp:TableCell>
            <asp:TableCell ID="TableCell1" runat="server">
                &nbsp; &nbsp; <asp:LinkButton ID="lbtnLocation" runat="server" Visible="False">Add New Location</asp:LinkButton>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="lbWarrenty" runat="server" Text="Warrenty: "></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:LinkButton ID="linkWarrenty" runat="server" OnClick="WarrantyLinkButton_Click">LinkButton</asp:LinkButton>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="lbPurchaseDate" runat="server" Text="Purchase Date: "></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="txtPurchaseDate" runat="server"></asp:TextBox>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                    <asp:Button ID="btnUpdate" runat="server" Text="Update Area" class="button" 
                    style="width:150px; height:30px; top: 0px; left: 0px;" 
                        onclick="btnUpdate_Click" Visible="False" />
            
</asp:TableCell>
            <asp:TableCell>
                    <asp:Button ID="btnCancle" runat="server" Text="Cancle Update" class="button" 
                    style="width:150px; height:30px; top: 0px; left: 0px;" 
                        onclick="btnCancle_Click" Visible="False" />
            
</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                    <asp:Button ID="btnEdit" runat="server" Text="Edit Area" class="button" 
                    style="width:150px; height:30px; top: 0px; left: 0px;" 
                        onclick="btnEdit_Click" />
            
</asp:TableCell>
            <asp:TableCell>
                    <asp:Button ID="btnDelete" runat="server" Text="Delete Area" class="button" 
                    style="width:150px; top: 0px; left: 0px;" 
                        OnClientClick="return confirm('Are you sure you want to delete this item?');" 
                        onclick="btnDelete_Click" Visible="True" Enabled="True" />
            
</asp:TableCell>
        </asp:TableRow>







    </asp:Table>

    <br />


        <br /><br /><br />
    </div>



</asp:Content>

